package cc.rengu.igas.channel.nucc.common.enums;

/**
 * 业务响应码枚举类
 * Created by 王成 on 2017/6/27.
 */
public enum RespCodeEnum {
    TRANS_SUCCESS("00000000", "交易成功"),
    MSG_VALID_CHECK_ERROR("ER21NU01", "报文检查失败"),
    MCHNT_INFO_NOT_FOUND("ER22NU01", "获取商户信息失败"),
    GET_TERM_KEY_ERROR("ER22NU02", "获取终端密钥失败"),
    CONFIG_PARAM_NOT_EXIST("ER22NU03", "配置参数不存在"),
    GET_THIRD_MCHNT_KEY_ERROR("ER22NU04", "获取第三方商户密钥失败"),
    GET_CARD_BIN_INFO_ERROR("ER22NU05", "获取卡BIN信息失败"),
    GET_PAY_ORDER_INFO_ERROR("ER22NU06", "获取支付订单信息失败"),
    UPDATE_ORDER_STATUS_ERROR("ER22NU07", "更新支付订单信息失败"),
    INSERT_SIGN_INFO_ERROR("ER22NU08", "登记签约信息失败"),
    NOT_SURPORT_TXN_ERROR("ER22NU09", "不支持交易类型"),
    CHANNEL_CONFIG_NOT_EXIST("ER22NU10", "通道配置不存在"),
    CHANNEL_STATUS_UNNORMAL("ER22NU11", "通道状态异常"),
    GENERATE_SIGN_BLOCK_ERROR("ER22NU12", "生成加签BLOCK失败"),
    GENERATE_SIGN_ERROR("ER22NU13", "生成数字签名失败"),
    VERIFY_SIGN_ERROR("ER22NU14", "校验数字签名失败"),
    ALIP_NOTICE_TXN_ERROR("ER22NU15", "支付宝通知交易处理失败"),
    ORIG_TXN_NOT_FOUND("ER22NU16", "原交易信息查找失败"),
    DECRYPT_DATA_ERROR("ER22NU17", "解密数据失败"),
    GET_TXN_CONF_ERROR("ER22NU18", "获取交易配置信息失败"),
    CALL_BIZ_SERVICE_ERROR("ER22NU19", "调用业务系统处理失败"),
    REFUND_AMT_OVER_LIMIT("ER22NU20", "退款金额超出金额限制"),
    GEN_SMS_CODE_ERROR("ER22NU21", "生成短信验证码失败"),
    GET_SMS_INFO_ERROR("ER22NU22", "获取短信验证码信息失败"),
    SMS_CODE_EXPIRED("ER22NU23", "验证码已过期"),
    TEL_NO_IS_DIFF("ER22NU24", "手机号码不一致"),
    VERIFY_SMS_CODE_ERROR("ER22NU25", "短信验证码验证失败"),
    SMS_CODE_ALREADY_USED("ER12NU26", "验证码已使用"),
    TXN_LIMIT_STATIS_ERROR("ER22NU27", "交易限额统计处理失败"),
    TXN_LIMIT_STATIS_OFF_ERROR("ER22NU28", "交易限额统计超限，不允许交易"),
    GENERATE_MAC_BLOCK_ERROR("ER22NU29", "生成MACBLOCK失败"),
    GET_KEY_INFO_ERROR("ER22NU30", "获取机构密钥失败"),
    VERIFY_MAC_ERROR("ER22NU31", "验证mac失败"),
    PUB_CERT_EXPIRED("ER22NU32", "公钥证书已过期"),
    TIME_OUT_ERROR("ER129998", "系统超时"),
    SYSTEM_ERROR("ER129999", "系统异常");
    private String respCode;
    private String respDesc;

    RespCodeEnum(String respCode, String respDesc) {
        this.respCode = respCode;
        this.respDesc = respDesc;
    }

    public String getRespCode() {
        return respCode;
    }

    public void setRespCode(String respCode) {
        this.respCode = respCode;
    }

    public String getRespDesc() {
        return respDesc;
    }

    public void setRespDesc(String respDesc) {
        this.respDesc = respDesc;
    }
}
